import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import VueDragResize from "vue-drag-resize";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// 解决报错： Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See
import "default-passive-events";

let app = createApp(App);
app.component("vue-drag-resize", VueDragResize);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);
app.use(ElementPlus, {
  locale: zhCn,
});
app.mount("#app");
